﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="wages.aspx.cs" Inherits="Wage_wages" %>
<%@ Register Src="../usercontrol/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<html>
<head runat="server">
    <link href="../css/adminCss.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../js/changerows.js"></script>
    <script type="text/javascript" src="../js/rl.js"></script>
    <title>工资管理</title>
</head>
<body>
    <form id="form1" runat="server">
   <table width="99%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
    <td  height="22"><img src="../images/module.gif" width="20" height="22">
        <asp:Label ID="lblwz" runat="server"></asp:Label></td>
    <td style=" text-align: left;">
        &nbsp;</td></tr>
        <tr>
    <td width="990" colspan="2" align="right" style="text-align: right"><img src="../images/search.gif" alt="搜索" width="16" height="16"/>业绩时间：<asp:TextBox ID="yjTm1" runat="server" CssClass="input1" Width="100px"></asp:TextBox>到<asp:TextBox
            ID="yjTm2" runat="server" CssClass="input1" Width="100px"　></asp:TextBox>姓名：<asp:TextBox
            ID="txtselecName" runat="server" CssClass="input1" Width="100px"　></asp:TextBox>
        部门：<asp:DropDownList ID="ddrDepartment" runat="server">
        </asp:DropDownList>状态：<asp:DropDownList ID="ddlzt" runat="server">
            <asp:ListItem Value="0">－请选择状态－</asp:ListItem>
            <asp:ListItem Value="1">已结算</asp:ListItem>
            <asp:ListItem Value="2">未结算</asp:ListItem>
        </asp:DropDownList>
        
      <asp:Button ID="btnSelec" runat="server" Text="搜索" CssClass="submit" CausesValidation="False" OnClick="btnSelec_Click"/></td>
  </tr>
</table>
<table width="99%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td bgcolor="#3CB6E5" height="5px"></td>
  </tr>
</table>
        <asp:GridView ID="GvDataJs" runat="server" CssClass="gridview" Width="99%" AutoGenerateColumns="False"
             RowStyle-HorizontalAlign="center" EmptyDataText="没有数据" OnRowDataBound="GvDataJs_RowDataBound">
              <RowStyle Height="25px" />
            <Columns>
                <asp:BoundField DataField="SalesId" HeaderText="销售Id">
                </asp:BoundField>
                <asp:BoundField DataField="StaffName" HeaderText="员工姓名" />
                <asp:BoundField DataField="Deptname" HeaderText="所属部门" />
                <asp:TemplateField HeaderText="基本工资(元)">
                    <ItemTemplate>
                        <asp:Label ID="StaffSalary" runat="server" Text= '<%# Bind("StaffSalary","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                   
                    </asp:TemplateField>
                 <asp:BoundField DataField="comodName" HeaderText="商品名" />
                 <asp:BoundField DataField="modul" HeaderText="型号" />
                  <asp:BoundField DataField="Unit" HeaderText="单位" />
                   <asp:TemplateField HeaderText="单价(元)">
                    <ItemTemplate>
                        <asp:Label ID="Prices" runat="server" Text= '<%# Bind("Prices","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                   
                    </asp:TemplateField>
                    <asp:BoundField DataField="number" HeaderText="数量" />
                  <asp:TemplateField HeaderText="销售业绩(元)">
                    <ItemTemplate>
                        <asp:Label ID="salemenoy" runat="server" Text= '<%# Bind("TotalMoney","{0:f2}") %>'></asp:Label>
                    </ItemTemplate>
                   
                    </asp:TemplateField>
                <asp:BoundField DataField="C_date" HeaderText="业绩日期" />
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                      
                        <asp:LinkButton ID="linkbtnSales" CssClass="lnkbtn" ForeColor="Red" runat="server" CommandArgument='<%#Eval("SalesId")+"|"+Eval("modul")+"|"+Eval("StaffName")%>' OnClick="linkbtnSales_Click" OnClientClick="return confirm('确定要结算吗?')"  >结算</asp:LinkButton>
                         <asp:LinkButton ID="lnkbtnLook" CssClass="lnkbtn" runat="server" ForeColor="Red" Enabled="false" CommandArgument='<%#Eval("StaffName")+"|"+Eval("SalesId")+"|"+Eval("Deptname")%>' OnClick="lnkbtnLook_Click" >查看</asp:LinkButton>
                    </ItemTemplate>
                
                </asp:TemplateField>
               
                
                
            </Columns>
            <RowStyle HorizontalAlign="Center" />
            <EmptyDataRowStyle ForeColor="Red" HorizontalAlign="Center" />
        </asp:GridView>
          <table align="center" width="99%">
          <tr>
          <td>
        <uc1:PageNavigator ID="PageNavigator1" DataId="GvDataJs" ShowType="Text" ConnectionString="connstr" PageSize="20" runat="server" />
        </td>
        </tr>
      </table>
       <asp:HiddenField ID="hfxs" runat="server" />
        <asp:HiddenField ID="hfcheck" runat="server" />
         <asp:HiddenField ID="hfuserId" runat="server" />
      <asp:HiddenField ID="hfdata" runat="server" />
         <asp:HiddenField ID="hfLevels" runat="server"  />
        
    </form>
</body>
</html>
<script language="javascript"><!--
//senfe("表格名称","奇数行背景","偶数行背景","鼠标经过背景","点击后背景");
 senfe("GvDataJs","#ECF9FC","#FFFFFF","#D6F1F8");
--></script>